var gulp = require('gulp');
var browserSync = require('browser-sync');

gulp.task('browser-sync', ['rebuild'], function() {
  browserSync({
    server: {
      baseDir: './',
    },
    port: 80,
    host: '192.168.10.152',
    local: false,
  });
});

gulp.task('rebuild', function() {
  browserSync.reload()
});

gulp.task('watch', function() {
  gulp.watch(['**/*.html'], ['rebuild'])
});

gulp.task('default', ['browser-sync', 'watch']);